﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

<script type="text/javascript">

    //$.extend($.fn.validatebox.defaults.rules, {
    //    minLength: {
    //        validator: function (value, param) {
    //            return value.length >= param[0];
    //        },
    //        message: 'Please enter at least {0} characters.'
    //    }
    //});

    //$('form').submit(function () {
    //    if ($('.validatebox-invalid').length > 0) {
    //        return false;
    //    }
    //});

</script>

    <h2>
        Welcome to ASP.NET!
    </h2>
    <p>
        To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
    </p>
    <p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>

    <input type="checkbox" name="chkField" />

    <input type="checkbox" name="chkField2" value="2" />

    <input type="text" class="easyui-validatebox"  />
    <input class="easyui-validatebox" value="1" validType="minLength[5]" />  
    <input type="submit" value="submit" />

    <input type="radio" checked="checked" />

    <table>
        <tr>
            <td> 
                <asp:Label ID="Label1" runat="server" Text="<%$ Resources:UIResource, Plaintext %>" />:
            </td>
            <td>
                <asp:Label ID="lblPlaintext" runat="server" />    
            </td>
        </tr>        
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="<%$ Resources:UIResource, Ciphertext %>" />:             
            </td>
            <td>
                <asp:Label ID="lblCiphertext" runat="server" />
            </td>
        </tr>
        <tr>
            <td>App Setting Key: </td>
            <td>
                <asp:TextBox ID="textBoxSettingKey" runat="server" />
                <asp:Button ID="buttonReadValueBySettingKey" Text="Read Setting Value By Key" runat="server"
                    OnClick="buttonReadValueBySettingKey_Click" />
            </td>
        </tr>
        <tr>
            <td>Setting Value: </td>
            <td>
                <asp:Label ID="lblSettingValue" runat="server" />
            </td>
        </tr>
    </table>  

    <asp:Button ID="btnEnglish" Text="English" OnClick="btnEnglish_Click" 
        runat="server" meta:resourcekey="btnEnglishResource1" />
    <asp:Button ID="btnSimplifiedChinese" Text="Simplified Chinese" 
        OnClick="btnSimplifiedChinese_Click" runat="server" 
        meta:resourcekey="btnSimplifiedChineseResource1" />


</asp:Content>
